package com.lcxw.hxzb.friendcircle.project.system.service.impl;

import com.lcxw.hxzb.friendcircle.project.system.domain.YwpdGameDistrict;
import com.lcxw.hxzb.friendcircle.project.system.mapper.YwpdGameDistrictMapper;
import com.lcxw.hxzb.friendcircle.project.system.service.IYwpdGameDistrictService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 游戏区服Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-09-15
 */
@Service
public class YwpdGameDistrictServiceImpl implements IYwpdGameDistrictService 
{
    @Autowired
    private YwpdGameDistrictMapper ywpdGameDistrictMapper;

    /**
     * 查询游戏区服
     * 
     * @param districtId 游戏区服ID
     * @return 游戏区服
     */
    @Override
    public YwpdGameDistrict selectYwpdGameDistrictById(Long districtId)
    {
        return ywpdGameDistrictMapper.selectYwpdGameDistrictById(districtId);
    }

    /**
     * 查询游戏区服列表
     * 
     * @param ywpdGameDistrict 游戏区服
     * @return 游戏区服
     */
    @Override
    public List<YwpdGameDistrict> selectYwpdGameDistrictList(YwpdGameDistrict ywpdGameDistrict)
    {
        return ywpdGameDistrictMapper.selectYwpdGameDistrictList(ywpdGameDistrict);
    }

    /**
     * 新增游戏区服
     * 
     * @param ywpdGameDistrict 游戏区服
     * @return 结果
     */
    @Override
    public int insertYwpdGameDistrict(YwpdGameDistrict ywpdGameDistrict)
    {
        return ywpdGameDistrictMapper.insertYwpdGameDistrict(ywpdGameDistrict);
    }

    /**
     * 修改游戏区服
     * 
     * @param ywpdGameDistrict 游戏区服
     * @return 结果
     */
    @Override
    public int updateYwpdGameDistrict(YwpdGameDistrict ywpdGameDistrict)
    {
        return ywpdGameDistrictMapper.updateYwpdGameDistrict(ywpdGameDistrict);
    }

    /**
     * 批量删除游戏区服
     * 
     * @param districtIds 需要删除的游戏区服ID
     * @return 结果
     */
    @Override
    public int deleteYwpdGameDistrictByIds(Long[] districtIds)
    {
        return ywpdGameDistrictMapper.deleteYwpdGameDistrictByIds(districtIds);
    }

    /**
     * 删除游戏区服信息
     * 
     * @param districtId 游戏区服ID
     * @return 结果
     */
    @Override
    public int deleteYwpdGameDistrictById(Long districtId)
    {
        return ywpdGameDistrictMapper.deleteYwpdGameDistrictById(districtId);
    }
}
